package net.FamilyTree.service;

import com.baomidou.mybatisplus.extension.service.IService;
import net.FamilyTree.entity.People;
import net.FamilyTree.form.SearchForm;
import net.FamilyTree.vo.PageVo;

// PeopleService接口继承了IService<People>接口
public interface PeopleService extends IService<People> {

    // 添加人物信息
    public Boolean add(People people);

    // 获取人物信息列表，分页查询
    public PageVo list(Integer page, Integer size);

    // 根据搜索条件查询人物信息，返回分页结果
    public PageVo search(SearchForm searchForm);

    // 更新人物信息
    public Boolean update(People people);

    // 删除指定ID的人物信息
    public Boolean delete(Integer integer);

}
